<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>三角形</title>
</head>
<body>
    <script>
       /* var sum =0;
        for(var i=1; i<= 5 ;i++){
            var p = prompt("请输入第" + i + "门成绩");
            p = Number(p);
            sum += p;
            console.log(p);
        }
        alert("五门功课的平均分是" + sum / 5);
        */
        
        /*var m = 2016;
        for(var i = 250000 ; i<=1000000; i++){
            i = i * 1.25;
            m++;
        }
        alert("到"+m+"年的时候到达100万人");*/
        
        /*for(var c = 1 ; c <= 3 ; c++){
            var sum =0;
            for(var i=1; i<= 5 ;i++){
                var p = prompt(c +"班的，第"+ i + "名同学成绩");
                p = Number(p);
                sum += p;
            }
            alert("五门功课的平均分是" + sum / 5);
        
        }*/
        
        /*for (var c = 1 ; c<=3; c++){
            for(var i = 0 ; i <=5; i++){
                document.write("*");
            }
            document.write("<br>");
        }*/
        
        
//直角三角形        
        for (var c = 1 ; c < 30; c++){
            for(var i = 0 ; i < c; i++){
                document.write("*");
            }
            document.write("<br>");
        }
        
    
//九九乘法表        
        /*for (var j = 1 ; j <= 9 ;j++){
            for (var i = 1 ; i <= j ; i++){
                document.write(i+"×"+j+"="+i*j+"&nbsp");
            }
            document.write("<br>");
        }*/
        
    </script>
</body>
</html>